home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * teach uglobals.c -- Version 3.0
- *
- * Copyright (c)
- * Apple Computer, Inc. 1986-1990
- * All Rights Reserved.
- *
- * Developer Technical Support Apple II Sample Code
- *
- * This file contains the code which intializes the global variables
- * used by the busy box program.
- *
- **********************************************************************/
-
- #include <memory.h>
- #include <window.h>
-
- unsigned int userID; /* Application ID assigned by Memory Mgr */
- unsigned int quitFlag; /* True when quitting */
- unsigned int staggerCount; /* Used to stagger windows as they open */
- WmTaskRec event; /* All events are returned here. */
- GrafPortPtr lastWindow; /* This private global is used in CheckFrontW.
- ** to prevent extra work when the windows
- ** have not changed. It is initialized
- ** at the beginning of MainEvent.
- */
-
- void initGlobals()
- {
- quitFlag = staggerCount = 0;
- event.wmTaskMask = 0x001FFFFFL;
- lastWindow = (GrafPortPtr)-1;
- }
-